Simplify, make more efficient and fix memory leak when turning quark into
authorOwen Taylor <otaylor@redhat.com>
Tue, 4 Dec 2001 17:20:41 +0000 (17:20 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 4 Dec 2001 17:20:41 +0000 (17:20 +0000)
Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_set_property_value):
Simplify, make more efficient and fix memory leak
when turning quark into a string. (#66103, HideToshi
Tajima)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtksettings.c

index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index ceaf5210e9d715dec9581fd873cd7284a6a136f3..86041721bb6eb7dc6d7ab2b09e41e27e858bf4b1 100644 (file)
@@ -1,4 +1,9 @@
-Tue Dec  4 12:06:13 2001  Owen Taylor  <otaylor@redhat.com>
+Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_set_property_value):
+       Simplify, make more efficient and fix memory leak
+       when turning quark into a string. (#66103, HideToshi
+       Tajima)
 
        * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
        init() and unref priv->tooltips in destroy rather
index 28f7ed8f1b3743b693e06a8976f25f22620345fb..6090ea2c01649a6be5976447a4d46548d6ab590e 100644 (file)
@@ -583,11 +583,8 @@ gtk_settings_set_property_value (GtkSettings            *settings,
   
   name = g_strdup (prop_name);
   g_strcanon (name, G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "-", '-');
-  name_quark = g_quark_try_string (name);
-  if (name_quark)
-    g_free (name);
-  else
-    name_quark = g_quark_from_string (name);
+  name_quark = g_quark_from_string (name);
+  g_free (name);
 
   qvalue = g_datalist_id_get_data (&settings->queued_settings, name_quark);
   if (!qvalue)